//
//  LRTextField.m
//  HNJYB
//
//  Created by panshen on 2017/10/11.
//  Copyright © 2017年 Mag1cPanda. All rights reserved.
//

#import "LRTextField.h"

@implementation LRTextField

//- (id)initWithFrame:(CGRect)frame
//{
//    if (self = [super initWithFrame:frame])
//    {
//        [self addObserver:self forKeyPath:@"text" options:(NSKeyValueObservingOptionNew) context:NULL];
//    }
//    return self;
//}
//
//- (id)initWithCoder:(NSCoder *)aDecoder
//{
//    if (self = [super initWithCoder:aDecoder])
//    {
//        [self addObserver:self forKeyPath:@"text" options:(NSKeyValueObservingOptionNew) context:NULL];
//    }
//    return self;
//}
//
//-(void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary<NSKeyValueChangeKey,id> *)change context:(void *)context
//{
//    if ([keyPath isEqualToString:@"text"])
//    {
//        UITextField *tf = object;
//        NSLog(@"observeValueForKeyPath ~ %@",tf.text);
//    }
//}
//
//- (void)dealloc
//{
//    [self removeObserver:self forKeyPath:@"text"];
//}

@end
